package com.ruoyi.ftrl.service.impl;

import com.ruoyi.ftrl.domain.TempCache;
import com.ruoyi.ftrl.mapper.TempCacheMapper;
import com.ruoyi.ftrl.service.ITempCacheService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TempCacheServiceImpl implements ITempCacheService {

    @Autowired
    private TempCacheMapper tempCacheMapper;

    @Override  
    public TempCache getTemperatureByRoom(String roomNo) {
        return tempCacheMapper.selectTempCacheByRoom(roomNo);  
    }  
}  